package com.atcumt.Huawei;

import java.util.Arrays;
import java.util.Scanner;

/**
 * 明明的随机数
 * 输入：
 * 3
 * 2
 * 2
 * 1
 * 输出：
 * 1
 * 2
 */
public class HJ11 {

    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int[] nums = new int[n];

        for (int i = 0; i < n; i++) {
            nums[i] = scan.nextInt();
        }

        Arrays.sort(nums);
        System.out.println(nums[0]);
        for (int i = 1; i < n; i++) {
            if (nums[i] != nums[i - 1]) {
                System.out.println(nums[i]);
            }
        }
    }
}
